<%@ include file="../../common/common_include.jsp" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
	RegisterForm form = (RegisterForm) request.getAttribute(Constants.FORM_COMMAND_KEY);
	String name = "";
	if(form.getType().equalsIgnoreCase(Constants.USER_THIRD_TYPE_QQ)){
		name = "QQ";
	}else if(form.getType().equalsIgnoreCase(Constants.USER_THIRD_TYPE_SINA)){
		name="新浪微博";
	}else if(form.getType().equalsIgnoreCase(Constants.USER_THIRD_TYPE_RENREN)){
		name="人人网";
	}
%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>注册成功</title>
<script>

</script>

<style type="text/css">
	#content{
		width:800px;
		margin:0 auto;
	}
	#top{
		height:50px;
		line-height:50px;
	}
	#left{
		float:left;
	}
	#right{
		float:left;
	}
</style>
</head>
<body>
<div id="content">
	<div>
		<p>恭喜您，注册成功。您的用户名为：<strong><%=form.getUserName()%></strong></p>
		<p>接下来：您可以进入
			<a href="javascript:enter()">首页</a>
			，也可以通过<%=name%>的<span style="color:blue"><%=form.getNickname()%></span>登陆。
		</p>
		<p></p>
		<form id="indexForm" action="/index" style="display:none">
			<input type="text" name="sid" value="<%=form.getUserId()%>" >
		</form>
	</div>
</div>
</body>
<script type="text/javascript" src="/js/jquery-1.4.2.js"></script>
<script type="text/javascript">
	function enter(){
		$("#indexForm").submit();
	}
</script>
</html>